Type Definitions
The following type definitions are available globally.
-
Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.
Declaration
Objective-C
typedef void (^_Nullable DJIActiveTrackModeCompletionBlock)(DJIActiveTrackMode, NSError *_Nullable)Parameters
activeTrackModeActive track mode to return. The value is undefined if
erroris not nil.errorAn error object if an error occured during async operation, or nil if no error occurred.
-
Returns the progress status using a range of 0.0 to 1.0.
Declaration
Objective-C
typedef void (^_Nullable DJIMissionProgressHandler)(float) -
Download mission completion block.
Declaration
Objective-C
typedef void (^_Nullable DJIMissionDownloadCompletionBlock)( DJIMission *_Nullable, NSError *_Nullable)Parameters
newMissionNew downloaded mission.
errorAn error occurred while downloading.
-
Block invoked when preparing a file for download.
Declaration
Objective-C
typedef void (^_Nullable DJIFileDownloadPreparingBlock)(NSString *_Nullable, DJIDownloadFileType, NSUInteger, BOOL *_Nonnull) -
Block invoked when a file is downloading.
Declaration
Objective-C
typedef void (^_Nullable DJIFileDownloadingBlock)(NSData *_Nullable, NSError *_Nullable) -
Block invoked after a file has been downloaded.
Declaration
Objective-C
typedef void (^_Nullable DJIFileDownloadCompletionBlock)()
-
Remote Controller’s unique identification number. This is given to each Remote Controller during manufacturing and cannot be changed.
Declaration
Objective-C
typedef uint32_t DJIRCID
-
Signal quality of a connected master or slave Remote Controller in percent [0, 100].
Declaration
Objective-C
typedef uint8_t DJIRCSignalQualityOfConnectedRC
-
Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.
Declaration
Objective-C
typedef void (^_Nullable DJICompletionBlock)(NSError *_Nullable)Parameters
errorAn error object if an error occured during async operation, or nil if no error occurred.
-
Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.
Declaration
Objective-C
typedef void (^_Nullable DJIBooleanCompletionBlock)(BOOL, NSError *_Nullable)Parameters
booleanBoolean value returned by the command. If the error is not nil, the value is undefined.
errorAn error object if an error occured during async operation, or nil if no error occurred.
-
Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.
Declaration
Objective-C
typedef void (^_Nullable DJIFloatCompletionBlock)(float, NSError *_Nullable)Parameters
floatValueFloat value returned by the command. If the error is not nil, the value is undefined.
errorAn error object if an error occured during async operation, or nil if no error occurred.
-
Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.
Declaration
Objective-C
typedef void (^_Nullable DJITapFlyModeCompletionBlock)(DJITapFlyMode, NSError *_Nullable)Parameters
tapFlyModeTapFly mode to return. The value is undefined if
erroris not nil.errorAn error object if an error occured during async operation, or nil if no error occurred.
View on GitHub
Type Definitions Reference